﻿using System;
using System.Runtime.InteropServices;
using AfterTheDeadline;

namespace AfterTheDeadlineNet2Adapter
{
    [ComVisible(true)]
    [Guid("1DCE29B7-55CC-49A9-BC59-6BA84DC636DF")]
    public class MetricAdapter : IMetricAdapter
    {
        private Metric _metric;

        public MetricAdapter(Metric metric)
        {
            _metric = metric;
        }

        #region IMetricAdapter Members

        public MetricKey Key
        {
            get { return _metric.Key; }
        }

        public MetricType Type
        {
            get { return _metric.Type; }
        }

        public int Value
        {
            get { return _metric.Value; }
        }

        #endregion
    }
}
